public class hk5Q1 
{
    public static void main(String[] arg) 
    {
        int count = 1;
        for (int i = 2; i <= 1000; i++) 
        {
            int flag = 0;//定义常态化
            for (int j = 2; j < i; j++) 
            {
                if (i % j == 0) 
                {
                    flag = 1;
                    break;
                }
            }
            if (flag == 0)
            {
                System.out.println("count = " + count + " i = " + i);
                count++;//是素数再count++
                if (count > 100)//你写在外面干嘛，根本没循环可以跳了，笑死
                {
                    break;
                }
            }
        }
    }
}
